import { WeaTools } from 'ecCom';

export const getList = params => WeaTools.callApi('/api/offical/receiveDoc/getList', 'POST', params);

export const getCondition = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/condition', 'POST', params);

export const getBaseinfo = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getBaseinfo', 'POST', params);

export const receiveDoc = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/receiveDoc', 'POST', params);
// 签收
export const signinDoc = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/signinDoc', 'POST', params);
// 手动签收
export const manualSigninDoc = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/manualSigninDoc', 'POST', params);
export const rejectDoc = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/rejectDoc', 'POST', params);

export const sendbackDoc = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/sendbackDoc', 'POST', params);

export const createworkflow = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/createworkflow', 'POST', params);


export const getWorkflowConfig = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getWorkflowConfig', 'POST', params);

export const getWorkflowConfigCondition = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getWorkflowConfigCondition', 'POST', params);

export const setWorkflowConfig = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/setWorkflowConfig', 'POST', params);
// 退回、拒收form接口
export const postWebSendDocCondition = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/postWebSendDocCondition', 'POST', params);
// 获取流程列表的数据
export const createChangeFlowList = (params = {}) => WeaTools.callApi('/api/odoc/odocCenter/createChangeFlowList', 'POST', params);
// 获取打开创建流程页面url
export const getRequstId = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/createflowByWS', 'POST', params);
// 获取显示收文类型
export const getMenuType = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getMenuType', 'POST', params);

// 获取手工登记的form
export const getRegistrationForm = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getRegistrationForm', 'POST', params);
// 登记保存
export const saveRegistrationFormData = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/saveRegistrationFormData', 'POST', params);
//
export const smartRegistration = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/smartRegistration', 'POST', params);
// 获取PDF id
export const changeWordToPdf = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/changeWordToPdf', 'POST', params);
// 页面点击查看操作获取详情
export const getRegistrationFormData = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getRegistrationFormData', 'POST', params);
// 创建流程tab
export const getBaseInfoForDemo = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getBaseInfoForDemo', 'POST', params);
// 创建流程数据
export const getWorkflowListByTypeForDemo = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/getWorkflowListByTypeForDemo', 'POST', params);
// 创建流程数据
export const delList = (params = {}) => WeaTools.callApi('/api/offical/receiveDoc/del', 'POST', params);

